package net.sky.oa.service.talkpark.impl;

import java.util.List;

import javax.annotation.Resource;

import net.sky.oa.dao.talkpark.TalVoteDao;
import net.sky.oa.dao.talkpark.TalVoteoptionsDao;
import net.sky.oa.model.TalVote;
import net.sky.oa.service.talkpark.TalVoteService;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.htsoft.core.service.impl.BaseServiceImpl;

@Service
@Transactional
public class TalVoteServiceImpl extends BaseServiceImpl<TalVote> implements TalVoteService {
    
	
	private TalVoteDao talVotedao;
	private TalVoteoptionsDao talVoteoptionsDao;
	
	@Resource
	public void setDao(TalVoteDao talVotedao){
		super.setDao(talVotedao);
	    this.talVotedao=talVotedao;	
	}
    
	@Transactional(readOnly=true)
	public List<TalVote> findAllVote() {
		
		return this.talVotedao.findAllVote();
	}

	public List<TalVote> findByHql(String paramString) {
		// TODO Auto-generated method stub
		return null;
	}
	
	/*@Override
	public TalVote save(TalVote entity) {
		TalVoteoptions talVoteoptions=talVoteoptionsDao.findByUserName(entity.getUsername());//entity.getAppUser().getId()
		if(null==appUser)
		{
		TalVoteoptions talVoteoptions = new TalVoteoptions();
		}else{
		}
		talVoteoptions.setSerial(serial);
		talVoteoptions.setDesn(desn);

		return super.save(entity);
	}*/
	

}
